/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const systemRouter = {
  path: '/system',
  component: Layout,
  redirect: '/system/deviceActivation',
  name: 'system',
  meta: {
    title: '系统配置',
    icon: 'shezhiblk',
    roles:['operator','manager','root']
  },
  children: [
    {
      path: 'deviceActivation',
      name: 'deviceActivation',
      component: () => import('@/views/system/deviceActivation'),
      meta: { title: '装置激活', icon: 'dian' ,roles:['operator','root']}
    },
    {
      path: 'networkConfiguration',
      name: 'networkConfiguration',
      component: () => import('@/views/system/networkConfiguration'),
      meta: { title: '网络配置', icon: 'dian' ,roles:['operator','root']}
    },
    {
      path: 'deviceParameters',
      name: 'deviceParameters',
      component: () => import('@/views/system/deviceParameters'),
      meta: { title: '设备参数', icon: 'dian' ,roles:['operator','root']}
    },
    {
      path: 'automaticDeletion',
      name: 'automaticDeletion',
      component: () => import('@/views/system/automaticDeletion'),
      meta: { title: '自动删除', icon: 'dian' ,roles:['operator','root']},
      hidden: true
    },
    // {
    //   path: 'domainAlarm',
    //   name: 'domainAlarm',
    //   component: () => import('@/views/system/domainAlarm'),
    //   meta: { title: '域名告警', icon: 'dian' ,roles:['operator']}
    // },
    {
      path:'EventsDictionary',
      name:'EventsDictionary',
      component:()=>import('@/views/system/EventsDictionary'),
      meta:{ title:'事件字典', icon: 'dian', roles:['operator','root'] }
    },
    {
      path: 'equipmentMaintenance',
      name: 'equipmentMaintenance',
      component: () => import('@/views/system/equipmentMaintenance'),
      meta: { title: '设备维护', icon: 'dian' ,roles:['operator','root']}
    },
    {
      path: 'changePassword',
      name: 'changePassword',
      component: () => import('@/views/system/changePassword'),
      meta: { title: '修改密码', icon: 'dian' },
      hidden: true
    },
    {
      path: 'userManager',
      component: () => import('@/views/user/userManagement'),
      name: 'userManager',
      meta: { title: '用户管理', icon: 'dian',roles:['manager','root']}
    },
    {
      path: 'DHCP_Client',
      component: () => import('@/views/user/DHCP_Client'),
      name: 'DHCP_Client',
      meta: { title: '登录设置', icon: 'dian',roles:['manager','root']}
    },
    
    {
      path: 'Parameter',
      component: () => import('@/views/audit/Parameter'),
      name: 'Parameter',
      meta: { title: '审计策略', icon: 'dian',roles: ['root']}
    },
  ]
}

export default systemRouter
